package com.liwei.beans;
import org.apache.commons.codec.digest.DigestUtils;

public class MyAppMD5 {
    public static void main(String[] args) {
        //需要commons-codec依赖
        //MD5加盐值(实际情况会加盐值，目前没有加)
        String s = DigestUtils.md5Hex("123456");
        System.out.println(s);
    }
}
